﻿using System;

namespace ExpressesClass.BestApi.Utils.jsonUtil
{
    class JSONValidatingReader : JsonReader
    {

        public static Object INVALID = new Object();
        private JSONValidator validator;

        public JSONValidatingReader(JSONValidator validator)
        {
            
            this.validator = validator;
        }

        public JSONValidatingReader(ExceptionErrorListener listener)
        {
            new JSONValidatingReader(new JSONValidator(listener));
        }
    }
}
